<?php
namespace App\Http\Controllers\Member;

use App\Models\CompanyComment;
use App\Models\ResumeComment;
/**
 *
 * @author Joker
 *        
 */
class ResumeCommentController extends MemberController
{
    
    /**
     * 来自企业的评论
     */
    public function  index()
    {
        $comments = ResumeComment::where(['user_id'=>$this->uid,'from_company'=>1])->paginate(15);
        
        return view('member.recomment.fromenterprise')->with('comments',$comments);
    }
    
    public function toEnterprise()
    {
        $comments = CompanyComment::where('user_id','=',$this->uid)->where('job_id','>',0)->paginate(15);
        return view('member.recomment.toenterprise')->with('comments',$comments);
    }
}